package com.bean;

import java.io.Serializable;
import java.util.Date;

public class Booking implements Serializable {

    private Integer id;
    private String movieName;
    private String phone;
    private Integer hall;
    private Date time;
    private Integer rows;
    private Integer number;
    private Double price;
    private Integer state;
    private Date orderTime;
    private Integer spare;

    private Movie movie;
    private Cinema cinema;

    public Booking() {

    }

    public Booking(Integer id) {
        this.id = id;
    }

    public Booking(Integer id, String movieName, String phone, Integer hall, Date time, Integer rows, Integer number, Double price, Integer state, Date orderTime, Integer spare) {
        this.id = id;
        this.movieName = movieName;
        this.phone = phone;
        this.hall = hall;
        this.time = time;
        this.rows = rows;
        this.number = number;
        this.price = price;
        this.state = state;
        this.orderTime = orderTime;

        this.spare = spare;
    }

    @Override
    public String toString() {
        return "Booking{" +
                "id=" + id +
                ", movieName='" + movieName + '\'' +
                ", phone='" + phone + '\'' +
                ", hall=" + hall +
                ", time=" + time +
                ", rows=" + rows +
                ", number=" + number +
                ", price=" + price +
                ", state=" + state +
                ", orderTime=" + orderTime +
                ", spare=" + spare +
                ", movie=" + movie +
                ", cinema=" + cinema +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getHall() {
        return hall;
    }

    public void setHall(Integer hall) {
        this.hall = hall;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getSpare() {
        return spare;
    }

    public void setSpare(Integer spare) {
        this.spare = spare;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public Cinema getCinema() {
        return cinema;
    }

    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }
}
